﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Emoney.UserTraining.BLL;

namespace Emoney.UserTraining.Admin.aspx
{
    public partial class ajaxWorkMeeting : System.Web.UI.Page
    {
        Traning_NetworkMeetingBLL bll = new Traning_NetworkMeetingBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string mtg_name = "";
                string action = "";

                if (Request["action"] != null && Request["action"].ToString() != "")
                {
                    action = Request["action"].ToString();
                }

                if (Request["mtg_name"] != null && Request["mtg_name"].ToString() != "")
                {
                    mtg_name = Server.UrlDecode(Request["mtg_name"].ToString());
                    if (mtg_name.Length > 11)
                    {
                        mtg_name = mtg_name.Substring(0, 11);
                    }
                }

                if (action == "one")
                {
                    Response.Write(bll.OneMeetingID(mtg_name));
                    Response.End();
                }
            }
        }
    }
}